package com.flower.core_service.mqListener;

import com.flower.core_service.sources.CoreSource;
import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.stereotype.Component;

/**
 * @ClassName ConsumerListener
 * @Description TODO
 * @Author 张晓焕
 * @Date 2022/8/9 23:00
 * @Version 1.0
 */
@Component
public class ConsumerListener {

    @StreamListener(value = CoreSource.OUTPUT) //绑定topic消费
    public void receiveMessageOne(String message){
        System.out.println(message);

    }

}
